package com.salmon.study.life;


import akka.actor.AbstractActor;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class StartStopActor2 extends AbstractActor {


    @Override
    public void preStart()
    {
        System.out.println("second started");
    }

    @Override
    public void postStop()
    {
        System.out.println("second stopped");
    }


    @Override
    public Receive createReceive() {
        log.info("second create Receive");
        return receiveBuilder().build();
    }
}
